package com.banana.manager.forest.entity.handle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDate;
import java.util.List;

@TableName("record_info")
@Getter
@Setter
@NoArgsConstructor
@ToString
public class RecordBean {
    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    @TableField("record_name")
    private String recordName;
    @TableField("record_date")
    private LocalDate recordDate;
    @TableField("record_description")
    private String recordDescription;
    @TableField("record_stage")
    private String recordStage;
    @TableField("record_type")
    private String recordType;
    @TableField("record_lost")
    private String recordLost;
    @TableField("record_photo")
    private String recordPhoto;
    @TableField("record_find")
    private String recordFind;
    @TableField("record_size")
    private String recordSize;
    @TableField("record_measure")
    private String recordMeasure;
    @TableField("record_area")
    private String recordArea;
    @TableField("record_class")
    private String recordClass;
    @TableField("record_advice")
    private String recordAdvice;

    @TableField(exist = false)
    private List<DiscussBean> discussBeans;


    public RecordBean(String recordName, LocalDate recordDate, String recordDescription, String recordStage, String recordType, String recordLost, String recordPhoto, String recordFind, String recordSize, String recordMeasure, String recordArea, String recordClass, List<DiscussBean> discussBeans) {
        this.recordName = recordName;
        this.recordDate = recordDate;
        this.recordDescription = recordDescription;
        this.recordStage = recordStage;
        this.recordType = recordType;
        this.recordLost = recordLost;
        this.recordPhoto = recordPhoto;
        this.recordFind = recordFind;
        this.recordSize = recordSize;
        this.recordMeasure = recordMeasure;
        this.recordArea = recordArea;
        this.recordClass = recordClass;
        this.discussBeans = discussBeans;
    }

    public RecordBean(String recordName, LocalDate recordDate, String recordDescription, String recordStage, String recordType, String recordLost, String recordPhoto, String recordFind, String recordSize, String recordMeasure, String recordArea, String recordClass) {
        this.recordName = recordName;
        this.recordDate = recordDate;
        this.recordDescription = recordDescription;
        this.recordStage = recordStage;
        this.recordType = recordType;
        this.recordLost = recordLost;
        this.recordPhoto = recordPhoto;
        this.recordFind = recordFind;
        this.recordSize = recordSize;
        this.recordMeasure = recordMeasure;
        this.recordArea = recordArea;
        this.recordClass = recordClass;
    }
}
